package org.example.project.util;

/**
 * @author linky
 */

public enum ResponseCode {

    /*
        code 的状态码
     */
    success(200, "请求成功"),
    fail(9999, "请求错误");
    private int code;
    private String msg;

    ResponseCode() {
    }

    ResponseCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
